package com.twu.biblioteca;

import java.util.ArrayList;

/**
 * User: akerber
 * Date: 1/31/13
 * Time: 6:52 PM
 */
public class UsersRepository {
    ArrayList<User> usersRepository;

    public UsersRepository(){
        this.usersRepository = new ArrayList<User>();
    }

    public void addUser(User user) {
       usersRepository.add(user);
    }

    public boolean containsUser(User user) {
        if (usersRepository.contains(user)){
          return true;
        } else return false;  //To change body of created methods use File | Settings | File Templates.
    }
}
